import {
  MONITOR_REPORT_URL,
  PROJECT_ID,
  USER_ID,
} from "./src/sdk/constants.js";
import { errorTrackerReport } from "./src/sdk/errorTracker.js";
import { historyPageTracker, hashPageTracker } from "./src/sdk/pageTracker.js";
const initMonitor = (options) => {
  const { projectId, userId, monitorReportUrl, isHashType } = options;
  window[PROJECT_ID] = projectId;
  window[USER_ID] = userId;
  window[MONITOR_REPORT_URL] = monitorReportUrl;
  errorTrackerReport();
  isHashType ? hashPageTracker() : historyPageTracker();
};
// export default initMonitor;
// module.exports = initMonitor;
// export default { initMonitor };
export default initMonitor;
